package com.srwl.mytx.service;


import com.srwl.mytx.domain.CommonResult;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface AdvertisementService {

    /**
     * 查询广告位出价
     *
     * @param body
     * @return
     */
    @POST("/live/queryOffer")
    Call<CommonResult> queryOffer(@Body Object body);

    @Deprecated
    @POST("/live/offer_v1")
    Call<CommonResult> offerToAdvertisement(@Body Object body);

    /**
     * 向直播间投放广告
     *
     * @param body
     * @return
     */
    @POST("/live/putAdvertisement")
    Call<CommonResult> putAdvertisement(@Body Object body);


    @POST("/live/setAdvertisement")
    Call<CommonResult> setAdvertisement(@Body Object body);


    /**
     * 根据直播间id 查询用户在该直播间下投放的广告位
     *
     * @param body
     * @return
     */
    @POST("/live/queryAdvertisement_v1")
    Call<CommonResult> queryAdvertisement_v1(@Body Object body);

    /**
     * 分页查询用户投放的所有广告
     * @param body
     * @return
     */
    @POST("/live/queryAdvertisement_v2")
    Call<CommonResult> queryAdvertisement_v2(@Body Object body);


    /**
     * 根据所投放的广告id ,查询广告详情
     *
     * @param advertisementId
     * @return
     */
    @POST("/live/queryAdvertisementById")
    Call<CommonResult> queryAdvertisementInfoById(@Body String advertisementId);

    @POST("/live/revokeDeposit")
    Call<CommonResult>revokeDeposit(@Body String advertisementId);

    @POST("/live/incrementDeposit")
    Call<CommonResult>incrementDeposit(@Body Object body);

    @POST("/live/changeOffer")
    Call<CommonResult>changeOffer(@Body Object body);


   @POST("/live/changeTimes")
    Call<CommonResult>changeTimes(@Body Object body);

}
